#include<gflags/gflags.h>
#include<iostream>
using std::cout;
using std::endl;

DEFINE_string(ip,"127.0.0.1","这是IP地址");
DEFINE_int32(port,8088,"这是端口号");
int main(int argc,char* argv[])
{
    google::ParseCommandLineFlags(&argc,&argv,true);
    cout<<FLAGS_ip<<endl;
    cout<<FLAGS_port<<endl;
    return 0;
}